package com.jvyou.house.domain;

import com.jvyou.common.annotation.Excel;
import com.jvyou.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房屋评论对象 house_comment
 *
 * @author Jvyou
 * @date 2024-09-17
 */
public class HouseComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    private Long id;

    /**
     * 房屋ID
     */
    @Excel(name = "房屋ID")
    private Long houseId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 评论用户姓名
     */
    @Excel(name = "评论用户姓名")
    private String userName;

    /**
     * 评分 (1-5)
     */
    @Excel(name = "评分 (1-5)")
    private Long rating;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    private String comment;

    /**
     * 评论状态 (1: 显示, 0: 隐藏)
     */
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public Long getHouseId() {
        return houseId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setRating(Long rating) {
        this.rating = rating;
    }

    public Long getRating() {
        return rating;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("houseId", getHouseId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("rating", getRating())
                .append("comment", getComment())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("status", getStatus())
                .toString();
    }
}
